package beans;

import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;

/**
 *
 * @author Benjamin
 */
public class SaveFilterBeanBeanInfo extends SimpleBeanInfo {
    
    @Override
    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            PropertyDescriptor enabled, outFile;
            
            enabled = new PropertyDescriptor("filterEnabled", SaveFilterBean.class);
            enabled.setDisplayName("Set active:");
            
            outFile = new PropertyDescriptor("outFile", SaveFilterBean.class);
            outFile.setDisplayName("Name of the Output-File:");
            
            PropertyDescriptor pd[] = { enabled, outFile };
            return pd;
        }
        catch(Exception ex) {
            ex.printStackTrace();
        }
        return null;
    }
    
}
